/*
 * GetCollectionAction.java
 * Copyright (c) 2006, FMap
 *
 * Created on 10 de febrero de 2006, 17:13
 */

package fmap.actions.collection;

import fmap.model.Collection;

/**
 * Obtiene una coleccion y todos sus mapas de ficheros
 *
 * @author  Javier Sanroman Araujo
 * @version $Revision: 1.1
 */
public class GetCollectionAction
{
    
    public Collection GetCollectionAction ( int idCollection )
    {
        Collection col = null;
        
        col = new fmap.dao.CollectionDao ().selectCollection ( idCollection );
        
        if( col != null)
        {
            col.setMapF ( new fmap.dao.MapFDao ().selectMapFCollection ( idCollection ) );
        }
        
        return col;
    }
    
    
}
